class rely_dev::developer (
 $testframework=false,
){

  apt::source { 'puppetlabs':
    location   => 'http://apt.puppetlabs.com',
    repos      => 'main',
    key        => '4BD6EC30',
    key_server => 'pgp.mit.edu',
  }
 
  exec { 'system-rvm':
    path => '/usr/bin:/usr/sbin:/bin',
    command => "/usr/bin/curl -fsSL https://get.rvm.io | bash -s -- --version latest",
    creates => '/usr/local/rvm/bin/rvm',
  }

  package {[ 'libxslt-dev', 'libxml2-dev', 'docker.io', 'curl' ]:
    ensure => installed,
  }

  package {'puppet':
    ensure => latest,
    require => Apt::Source [ 'puppetlabs' ],
  }

  package {'git':
    ensure => installed,
  }

  package {'puppet-lint':
    ensure => installed,
  }

  if $::testframework == true {
    notice("install testframe")
  }

}
